package com.lxq.test2104.main01;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int n,m,l,num;
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        m = sc.nextInt();
        l = sc.nextInt();
        int[] a = new int[l];
        for (int x:a
             ) {
            x = 0;
        }
        for (int j = 0 ; j < m*n ; j++){
            num = sc.nextInt();
            a[num]++;
        }

        for (int x:a
             ) {
            System.out.print(x+" ");
        }
    }
}
